package com.herr.wei.demo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ActTransferDemoActivity extends Activity {

	private Button toAct2;
	private Button toAct3;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        toAct2 = (Button)findViewById(R.id.toAct2);
        toAct3 = (Button)findViewById(R.id.toAct3);
        
        toAct2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(ActTransferDemoActivity.this, Act2.class);
				startActivity(intent);
				overridePendingTransition(R.anim.act_down_in, R.anim.act_down_out);
			}
		});
        
        toAct3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(ActTransferDemoActivity.this, Act3.class);
				startActivity(intent);
				overridePendingTransition(R.anim.act_largen_in, R.anim.act_largen_out);
			}
		});
        
    }
}